package com.lin.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author 林伟鸿
 * @since 2021-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CarUserBill implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单流水号
     */
    @TableId(value = "order_serial", type = IdType.ID_WORKER)
    private String orderSerial;

    /**
     * 汽车编号
     */
    private Integer carId;

    /**
     * 用户编号
     */
    private Integer userId;

    /**
     * 花费(每一笔默认加上10000押金)
     */
    private Integer orderPrice;

    /**
     * 剩余天数
     */
    private Integer lastDay;

    /**
     * 订单创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;


}
